package com.cocoiko;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class Cocoiko extends Activity implements OnClickListener {

	Button login;
	Button register;

	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.cocoiko);

		//
		
		login = (Button) findViewById(R.id.login);
		login.setOnClickListener(this);

		register = (Button) findViewById(R.id.register);
		register.setOnClickListener(this);
	
	}

	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		if (v == login) {
			Intent intent = new Intent(Cocoiko.this, Login.class);
			startActivity(intent);
		}
		if (v == register) {
			Intent intent = new Intent(Cocoiko.this, Register.class);
			startActivity(intent);
		}
	}
}